package reuse;

import java.util.ArrayList;
import java.util.List;

/**
 * final关键字修饰对象
 *
 * @author sun.ye
 * @since 2020-05-07 20:42
 */
public class FinalObject {

    static final List<String> stringList = new ArrayList<>();
    static final String[] strings = {"1","2","3","4","5"};

    static void changeFinal() {
        stringList.add("sunye");
        stringList.add("yesun");
        stringList.add("likersai");
        strings[1] = "6";
    }

    static void out() {
        System.out.println(stringList);
        System.out.println(strings[1]);
    }

    public static void main(String[] args) {
        FinalObject.changeFinal();
        FinalObject.out();
    }

}